import { Coures } from '@libs/db/models/course.model';
import { Controller } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { ReturnModelType } from '@typegoose/typegoose';
import { Crud } from 'nestjs-mongoose-crud';
import { InjectModel } from 'nestjs-typegoose';

@Crud({
  model:Coures
})
@Controller('courses')
@ApiTags('视频模块')
export class CoursesController {
  //依赖注入模型  视频模型
  constructor(@InjectModel(Coures) private readonly model:ReturnModelType<typeof Coures>
  ){}
}
